import request from "@/utils/axios";

// 获取部门树
export function GetDeptTree(data) {
  return request.post("/auth-backend/dept/tree", data);
}

// 新增部门
export function AddDept(data) {
  return request.post("/auth-backend/dept/add", data);
}

// 部门更新
export function UpdateDept(data) {
  return request.post("/auth-backend/dept/update", data);
}

// 删除部门
export function DeleteDept(data) {
  return request.post("/auth-backend/dept/delete", data);
}

// 更改部门
export function ChangeUserDept(data) {
  return request.post("/auth-backend/dept/change", data);
}
